<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>nick getBase64</title>
</head>
<body>
<div><img id="test" src="" alt=""/></div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
	// jQuery url get parameters function [获取URL的GET参数值]
	// <code>
	//     var GET = $.urlGet(); //获取URL的Get参数
	//     var id = GET['id']; //取得id的值
	// </code>
	//  url get parameters
	//  public
	//  return array()
		function getGet() {
			var aQuery = window.location.href.split("?");  //取得Get参数
			var aGET = new Array();
			if(aQuery.length > 1)
			{
				var aBuf = aQuery[1].split("&");
				for(var i=0, iLoop = aBuf.length; i<iLoop; i++)
				{
					var aTmp = aBuf[i].split("=");  //分离key与Value
					aGET[aTmp[0]] = aTmp[1];
				}
			}
			return aGET;
		}

			var getData=getGet();
	console.log(getData);
</script>
</body>
</html>